package com.onion.core.context;

import com.onion.utils.vo.Operator;

public class OperatorContexts {

    private static ThreadLocal<Operator> OPERATOR = new ThreadLocal<>();

    public static Operator getOperator() {
        return OPERATOR.get();
    }

    public static void setOperator(Operator operator) {
        OPERATOR.set(operator);
    }

    public static void remove(){
        OPERATOR.remove();
    }

}